<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>${params.app} 启动向导</title>
    <jsp:include page="common/common_head.jsp"></jsp:include>


</head>
<body data-spy="scroll" data-target=".navbar">


<jsp:include page="common/common_banner_app.jsp"></jsp:include>
<div style="height:30px"></div>


<div style="height:30px"></div>

<div class="container" id="">
    <c:forEach items="${r.appNames}" var="c">
       ${c}
        <table class="table  table-striped table-bordered table-hover " id="showTable">

            <thead>
            <tr>
                <th>序号</th>
                <th>任务名称</th>
            </tr>
            </thead>
            <tbody>

            <c:if test="${params.app eq 'hadoop'}">
                <tr>
                    <td>1</td>
                    <td><a href="/app/startQJM.html?appName=${c}&nextPath=-&prePath=-">启动QJM</a></td>
                </tr>

                <tr>
                    <td>2</td>
                    <td><a href="/app/startNameNodes.html?appName=${c}&nextPath=-&prePath=-">启动Name Node节点</a></td>
                </tr>

                <tr>
                    <td>3</td>
                    <td><a href="/app/startDataNodes.html?appName=${c}&nextPath=-&prePath=-">启动Data Node节点</a></td>
                </tr>

                <tr>
                    <td>4</td>
                    <td><a href="/app/startQJM.html?appName=${c}&action=stop&nextPath=-&prePath=-">关闭QJM节点</a></td>
                </tr>
                <tr>
                    <td>5</td>
                    <td><a href="/app/startNameNodes.html?appName=${c}&action=stop&nextPath=-&prePath=-">关闭Name Node节点</a></td>
                </tr>

                <tr>
                    <td>6</td>
                    <td><a href="/app/startDataNodes.html?appName=${c}&nextPath=-&prePath=-&action=stop">关闭Data Node节点</a></td>
                </tr>

                <tr>
                    <td>7</td>
                    <td><a href="/app/addSlaves.html?appName=${c}&nextStep=/app/addSlaves.html&prePath=-">Data Node节点扩容</a></td>
                </tr>

                <tr>
                    <td>8</td>
                    <td><a href="/app/removeSlaves.html?appName=${c}&nextStep=/app/removeSlaves.html&prePath=-">移除特定Data Node节点</a></td>
                </tr>
                <tr>
                    <td>8</td>
                    <td><a href="/app/startYarn.html?appName=${c}&nextPath=-&prePath=-">启动Yarn</a></td>
                </tr>
                <tr>
                    <td>8</td>
                    <td><a href="/app/startYarn.html?appName=${c}&action=stop&nextPath=-&prePath=-">关闭Yarn</a></td>
                </tr>
            </c:if>

            <c:if test="${params.app eq 'hbase'}">
                <tr>
                    <td>1</td>
                    <td><a href="/app/startHbaseMaster.html?appName=${c}&nextPath=-&prePath=-">启动HBase Master</a></td>
                </tr>
                <tr>
                    <td>2</td>
                    <td><a href="/app/startHbaseSlaves.html?appName=${c}&nextPath=-&prePath=-">启动HBase RegineServer</a></td>
                </tr>
                <tr>
                    <td>3</td>
                    <td><a href="/app/startHbaseMaster.html?appName=${c}&action=stop&nextPath=-&prePath=-">停止HBase Master</a></td>
                </tr>
                <tr>
                    <td>4</td>
                    <td><a href="/app/startHbaseSlaves.html?appName=${c}&action=stop&nextPath=-&prePath=-">停止HBase RegineServer</a></td>
                </tr>
                <tr>
                    <td>5</td>
                    <td><a href="/app/addSlaves.html?appName=${c}&nextStep=/app/addHbaseSlaves.html&prePath=-">RegineServer节点扩容</a></td>
                </tr>
                <tr>
                    <td>6</td>
                    <td><a href="/app/removeSlaves.html?appName=${c}&nextStep=/app/removeHbaseSlaves.html&prePath=-">移除特定Data Node节点</a></td>
                </tr>
            </c:if>

            </tbody>

        </table>
    </c:forEach>



    <jsp:include page="common/common_js.jsp"></jsp:include>


    <script>

    </script>
</body>
</html>